﻿using System.Net;

namespace MyTRCP.Common.MyProtocol
{
    public class MyWaitToSendDataInfo
    {
        public Guid SessionId { get; private set; }
        public bool IsClientSent { get; private set; }
        public bool IsResponse { get; private set; }
        public bool IsEncrypted { get; private set; }
        public bool IsHistoryReply { get; private set; }
        public PayloadTypeEnum PayloadType { get; private set; }
        public byte[] Data { get; private set; }
        public IPEndPoint RemoteEndPoint { get; private set; }
        public bool NeedRemoveSession { get; private set; }
        public MyWaitToSendDataInfo(Guid sessionId, bool isClientSent, bool isResp, bool isEnc, bool isHis, PayloadTypeEnum pType, byte[] data, IPEndPoint remoteEndPoint, bool needRemoveSession = false)
        {
            SessionId = sessionId;
            IsClientSent = isClientSent;
            IsResponse = isResp;
            IsEncrypted = isEnc;
            IsHistoryReply = isHis;
            PayloadType = pType;
            Data = data;
            RemoteEndPoint = remoteEndPoint;
            NeedRemoveSession = needRemoveSession;
        }
    }
}
